Crate onig_sys [] [src]

Structs

OnigCaptureTreeNode
OnigCompileInfo
OnigErrorInfo
OnigMetaCharTable
OnigRegion
OnigSyntax

Statics

OnigDefaultSyntax
OnigEncodingASCII
OnigEncodingBIG5
OnigEncodingCP1251
OnigEncodingEUC_CN
OnigEncodingEUC_JP
OnigEncodingEUC_KR
OnigEncodingEUC_TW
OnigEncodingGB18030
OnigEncodingISO_8859_1
OnigEncodingISO_8859_10
OnigEncodingISO_8859_11
OnigEncodingISO_8859_13
OnigEncodingISO_8859_14
OnigEncodingISO_8859_15
OnigEncodingISO_8859_16
OnigEncodingISO_8859_2
OnigEncodingISO_8859_3
OnigEncodingISO_8859_4
OnigEncodingISO_8859_5
OnigEncodingISO_8859_6
OnigEncodingISO_8859_7
OnigEncodingISO_8859_8
OnigEncodingISO_8859_9
OnigEncodingKOI8
OnigEncodingKOI8_R
OnigEncodingSJIS
OnigEncodingUTF16_BE
OnigEncodingUTF16_LE
OnigEncodingUTF32_BE
OnigEncodingUTF32_LE
OnigEncodingUTF8
OnigSyntaxASIS
OnigSyntaxEmacs
OnigSyntaxGnuRegex
OnigSyntaxGrep
OnigSyntaxJava
OnigSyntaxPerl
OnigSyntaxPerl_NG
OnigSyntaxPosixBasic
OnigSyntaxPosixExtended
OnigSyntaxRuby

Functions

onig_capture_tree_traverse

Traverse and callback in capture history data tree.

onig_copy_encoding

Copy encoding.

onig_copy_syntax

Copy syntax.

onig_end

The use of this library is finished.

onig_error_code_to_str

Get error message string. If this function is used for onig_new(), don't call this after the pattern argument of onig_new() is freed.

onig_foreach_name

Iterate function call for all names.

onig_free

Free memory used by regex object.

onig_free_body

Free memory used by regex object. (Except reg oneself.)

onig_get_capture_tree

Return the root node of capture history data tree.

onig_get_case_fold_flag

OnigCaseFoldType onig_get_case_fold_flag(regex_t* reg)

onig_get_default_case_fold_flag

Get default case fold flag.

onig_get_encoding

OnigEncoding onig_get_encoding(regex_t* reg)

onig_get_match_stack_limit_size

Return the maximum number of stack size. (default: 0 == unlimited)

onig_get_options

OnigOptionType onig_get_options(regex_t* reg)

onig_get_syntax

OnigSyntaxType* onig_get_syntax(regex_t* reg)

onig_get_syntax_behavior

unsigned int onig_get_syntax_behavior(OnigSyntaxType* syntax)

onig_get_syntax_op

unsigned int onig_get_syntax_op(OnigSyntaxType* syntax)

onig_get_syntax_op2

unsigned int onig_get_syntax_op2(OnigSyntaxType* syntax)

onig_get_syntax_options

OnigOptionType onig_get_syntax_options(OnigSyntaxType* syntax)

onig_init

Initialize library.

onig_match

Match string and return result and matching region.

onig_name_to_backref_number

Return the group number corresponding to the named backref (\k). If two or more regions for the groups of the name are effective, the greatest number in it is obtained.

onig_name_to_group_numbers

Return the group number list of the name. Named subexp is defined by (?....).

onig_new

Create a regex object.

onig_new_deluxe

Create a regex object. This function is deluxe version of onig_new().

onig_new_without_alloc

Create a regex object. reg object area is not allocated in this function.

onig_noname_group_capture_is_active

Return noname group capture activity.

onig_number_of_capture_histories

Return the number of capture history defined in the pattern.

onig_number_of_captures

Return the number of capture group in the pattern.

onig_number_of_names

Return the number of names defined in the pattern. Multiple definitions of one name is counted as one.

onig_region_clear

Clear contents of region.

onig_region_copy

Copy contents of region.

onig_region_free

Free memory used by region.

onig_region_new

Create a region.

onig_region_resize

Resize group range area of region.

onig_search

Search string and return search result and matching region.

onig_set_default_case_fold_flag

Set default case fold flag.

onig_set_default_syntax

Set default syntax.

onig_set_match_stack_limit_size

Set the maximum number of stack size.

onig_set_meta_char

Set a variable meta character to the code point value. Except for an escape character, this meta characters specification is not work, if ONIG_SYN_OP_VARIABLE_META_CHARACTERS is not effective by the syntax. (Build-in syntaxes are not effective.)

onig_set_syntax_behavior

void onig_set_syntax_behavior(OnigSyntaxType* syntax, unsigned int behavior)

onig_set_syntax_op

void onig_set_syntax_op(OnigSyntaxType* syntax, unsigned int op)

onig_set_syntax_op2

void onig_set_syntax_op2(OnigSyntaxType* syntax, unsigned int op2)

onig_set_syntax_options

void onig_set_syntax_options(OnigSyntaxType* syntax, OnigOptionType options)

onig_set_verb_warn_func

Set verbose warning function.

onig_set_warn_func

Set warning function.

onig_version

Return version string. (ex. "5.0.3")

onigenc_get_left_adjust_char_head

Return left-adjusted head address of a character.

onigenc_get_prev_char_head

Return previous character head address.

onigenc_get_right_adjust_char_head

Return right-adjusted head address of a character.

onigenc_str_bytelen_null

Return number of bytes in the string.

onigenc_strlen

Return number of characters in the string.

onigenc_strlen_null

Return number of characters in the string.

Type Definitions

OnigCaptureTreeCallback

Capture Tree Callback

OnigCaseFoldType
OnigCodePoint
OnigEncoding
OnigForeachCallback

Foreach Callback

OnigOptions
OnigRegex
OnigSyntaxBehavior
OnigSyntaxOp
OnigSyntaxOp2
OnigWarnFunc

Warning Callback